package com.opennews.openplatform

import groovy.transform.CompileStatic

@CompileStatic
class RoleController extends BaseController {
    RoleService roleService

    // region: Get actions.
    def index() {
        render("RoleController")
    }

    def queryNonSystemLevelRoles() {
        def result = roleService.queryNonSystemLevelRoles()

        sendDataResponse(result)
    }

    def queryAllRoles() {
        def result = roleService.queryAllRoles()

        sendDataResponse(result)
    }
    // endregion
}